[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Determines if this set is a proper subset of another set. Neither set is modified.
This set is a subset of otherSet if every element in this set
is also in otherSet. Additionally, this set must have strictly
fewer items than otherSet.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public bool IsProperSubsetOf( Set<T> otherSet ) |
Visual Basic (Declaration) |
---|
Public Function IsProperSubsetOf ( _ otherSet As Set(Of T) _ ) As Boolean |
Visual C++ |
---|
public: bool IsProperSubsetOf ( Set<T>^ otherSet ) |
Parameters
- otherSet
- Set<(Of <T>)>
Set to compare to.
Return Value
True if this is a proper subset of otherSet.Remarks
IsProperSubsetOf is computed in time O(N), where N is the size of the this set.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | This set and otherSet don't use the same method for comparing items. |
See Also
Set<(Of <T>)> Class
Wintellect.PowerCollections Namespace